import React, { FC } from 'react';
import { Inspector } from 'react-dev-inspector';
import './App.less';
const InspectorWrapper = process.env.NODE_ENV === 'development' ? Inspector : React.Fragment;
import { Provider } from 'react-redux';
import store from './store/store';
import { LayOut } from '@pages/layout';
import { createFromIconfontCN } from '@ant-design/icons';
export const IconFont = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_241664_69ttka7iom5.js',
});
import { HashRouter as Router } from 'react-router-dom';

const App: FC = () => (
  <Provider store={store}>
    <InspectorWrapper keys={['q', 'w', 'e']}>
      <Router>
        <div id="app">
          <LayOut />
        </div>
      </Router>
    </InspectorWrapper>
  </Provider>
);

export default App;
